package com.dengyuanke.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.dengyuanke.common.SuperEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 文件上传记录
 * </p>
 *
 * @author dengyuanke
 * @since 2017-11-09
 */
@ApiModel("文件上传实体")
@TableName("sys_file_upload")
public class FileUpload extends SuperEntity<FileUpload> {

    private static final long serialVersionUID = 1L;

    /**
     * 名称
     */
    @ApiModelProperty("图片名称")
	private String name;
    /**
     * 文件绝对路径
     */
	@ApiModelProperty("文件绝对路径")
    @TableField("absolute_path")
	private String absolutePath;
	/**
	 * 文件相对路径
	 */
	@ApiModelProperty("文件相对路径")
	@TableField("relative_path")
	private String relativePath;
    /**
     * 后缀
     */
	@ApiModelProperty("后缀")
	private String ext;
    /**
     * 原名称
     */
	@ApiModelProperty("原名称")
	private String originalname;
    /**
     * 大小
     */
	@ApiModelProperty("大小")
	private Integer size;
    /**
     * 描述
     */
	@ApiModelProperty("描述")
	private String remark;
    /**
     * 业务类型 (1,"商品略缩图"), (2,"商品详情图"), (3,"轮播图");
     */
	@ApiModelProperty("业务类型 (1,\"商品略缩图\"), (2,\"商品详情图\"), (3,\"轮播图\");")
	@TableField("business_type")
	private int businessType;
    /**
     * 更新人
     */
	@ApiModelProperty("更新人")
	@TableField("updator_id")
	private String updatorId;
    /**
     * 创建者
     */
	@ApiModelProperty("创建者")
	@TableField("creator_id")
	private String creatorId;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}



	public String getExt() {
		return ext;
	}

	public void setExt(String ext) {
		this.ext = ext;
	}

	public String getOriginalname() {
		return originalname;
	}

	public void setOriginalname(String originalname) {
		this.originalname = originalname;
	}

	public Integer getSize() {
		return size;
	}

	public void setSize(Integer size) {
		this.size = size;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public int getBusinessType() {
		return businessType;
	}

	public void setBusinessType(int businessType) {
		this.businessType = businessType;
	}

	public String getUpdatorId() {
		return updatorId;
	}

	public void setUpdatorId(String updatorId) {
		this.updatorId = updatorId;
	}

	public String getCreatorId() {
		return creatorId;
	}

	public void setCreatorId(String creatorId) {
		this.creatorId = creatorId;
	}

	public String getAbsolutePath() {
		return absolutePath;
	}

	public void setAbsolutePath(String absolutePath) {
		this.absolutePath = absolutePath;
	}

	public String getRelativePath() {
		return relativePath;
	}

	public void setRelativePath(String relativePath) {
		this.relativePath = relativePath;
	}

	@Override
	public String toString() {
		return "FileUpload{" +
				"name='" + name + '\'' +
				", absolutePath='" + absolutePath + '\'' +
				", relativePath='" + relativePath + '\'' +
				", ext='" + ext + '\'' +
				", originalname='" + originalname + '\'' +
				", size=" + size +
				", remark='" + remark + '\'' +
				", businessType=" + businessType +
				", updatorId='" + updatorId + '\'' +
				", creatorId='" + creatorId + '\'' +
				'}';
	}
}
